package com.example.demo2.generator.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;
import java.io.Serializable;

/**
 * 用户信息表(UserMessage)实体类
 *
 * @author makejava
 * @since 2024-09-08 15:09:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ColumnWidth(20)
public class UserMessage implements Serializable {
    private static final long serialVersionUID = -15282614732700424L;
/**
     * 主键id
     */
    @ExcelIgnore
    private Integer userId;
/**
     * 用户名
     */
    @ExcelProperty("用户名")
    private String username;
/**
     * 姓名
     */
    @ExcelProperty("姓名")
    private String name;
/**
     * 性别
     */
    @ExcelProperty("性别")
    private String gender;
/**
     * 部门
     */
    @ExcelProperty("部门")
    private String dpt;
/**
     * 入职时间
     */
    @ExcelProperty("入职时间")
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd")
    private LocalDate startDate;
/**
     * 离职时间
     */
    @ExcelProperty("离职时间")
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd")
    private LocalDate endDate;
/**
     * 手机号码
     */
    @ExcelProperty("手机号码")
    private String phoneNumber;
/**
     * 状态
     */
    @ExcelProperty("状态")
    private String status;
/**
     * 家庭住址
     */
    @ExcelProperty("家庭住址")
    private String address;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getDpt() {
        return dpt;
    }

    public void setDpt(String dpt) {
        this.dpt = dpt;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
//        this.startDate =LocalDate.parse(startDate) ;
        this.startDate =startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
//        this.endDate =LocalDate.parse(endDate);
        this.endDate=endDate;
    }


    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}

